package com.java_senior_7;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class DoubleColor  {




    public static void main(String[] args) {
        Set<Integer> set=new HashSet<>();
        Random random = new Random();
        while (true) {
            if(set.size()==6){
                break;
            }
            set.add(random.nextInt(33)+1);
        }

        for (int a:set) {
            System.out.println("红色球"+a);
        }
        System.out.println("蓝色球"+(random.nextInt(16)+1));
    }
}
